/*
 * ioGame
 * Copyright (C) 2021 - present  渔民小镇 （262610965@qq.com、luoyizhu@gmail.com） . All Rights Reserved.
 * # iohao.com . 渔民小镇
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.iohao.game.component.chat.room.c2c;

import com.iohao.game.component.chat.proto.ChatMessage;
import com.iohao.game.common.kit.micro.room.MicroRoom;

import java.util.List;

/**
 * 玩家聊天房间
 *
 * @author 渔民小镇
 * @date 2023-07-16
 */
public interface UserChatRoom extends MicroRoom {

    /**
     * 接收私聊消息
     *
     * @param chatMessage 消息
     */
    void receivePrivate(ChatMessage chatMessage);

    /**
     * 读取发送者的消息
     *
     * @param senderId 消息发送者
     */
    List<ChatMessage> readPrivate(long senderId);

    /**
     * 未读消息的发送者列表
     *
     * @return 玩家列表
     */
    List<Long> listUnreadUserId();
}
